<?php

namespace App\Http\Requests;

use App\Http\Requests\Request;

class AdminUserCreateRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name'                  => 'required|unique:admin_users,name|max:200',
            'real_name'             => 'required',
            // 'wxno'                  => 'required|unique:admin_users,wxno|max:200',
            'phone'                 => 'required|unique:admin_users,phone|min:11|max:11',
            // 'email'                 => 'required|email|unique:admin_users,email|max:200',
            'password'              => 'confirmed|min:6|max:200',
            'password_confirmation' => 'min:6|max:50',
            'area_id'               => 'required',
        ];
    }
}
